package com.wk.controller;

import com.wk.entity.Result;
import com.wk.service.CmfzRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("role")
public class RoleController {


    @Autowired
    private CmfzRoleService cmfzRoleService;

    @RequestMapping("findByPage")
    public Result findByPage(Integer page,Integer limit){
        return cmfzRoleService.findByPage(page,limit);
    }

    @RequestMapping("findAll")
    public List findAll(){
        return cmfzRoleService.findAll();
    }



}
